<%@ page trimDirectiveWhitespaces="true" %>
<%@ page import="org.springframework.web.context.WebApplicationContext" %>
<%@ page import="com.frogs.framework.web.filter.SpringWebContext" %>
<%@ page import="org.springframework.web.context.support.WebApplicationContextUtils" %>
<%@ page import="java.util.*,java.io.*,java.text.*,java.net.*,com.frogs.system.util.*" %>
<%@ page import="com.frogs.framework.web.*,com.frogs.framework.util.* , com.frogs.framework.exception.*,com.frogs.framework.component.cache.*" %>
<%@ page import="com.frogs.framework.util.StringUtil"%>
<%@ page import="com.frogs.framework.util.PageTurn" %>
<%@ page import="com.frogs.ucenter.entity.*,com.frogs.ucenter.service.*" %>
<%@ page import="com.frogs.ucenter.service.impl.scheduledTasks.*" %>
<%@ taglib  prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="ucenter" uri="http://ucenter.ehaoyao.com/el" %>
<%@ page isELIgnored="false" %>
<%
	WebApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(application);
	String path = request.getContextPath();
	String serverDomain = "ucenter.ehaoyao.com";
	String apiUcenter = "http://api.ucenter.ehaoyao.com";
	String mallWebSite = "www.ehaoyao.com";
	String masterWebSite = "http://www.ehaoyao.com";
	String newsWebSite = "http://news.ehaoyao.com";
	String imagesWeb = "http://img01.img.ehaoyao.com";
	String ucenterPort = "";//":18083";//如果给北京测试，需要再这里写端口18080
	String mallPort = "";//":18087";
	String designPort = "";//":18083";
	PageService pageService = (PageService)SpringWebContext.getSpringContext().getBean("pageService");
	request.setAttribute("pageHeader", pageService.getContent("http://news.ehaoyao.com/inc/header.html"));
	request.setAttribute("pageFooter",pageService.getContent("http://news.ehaoyao.com/inc/footer.html"));
	
	request.setAttribute("UCENTER_WEBSITE","http://"+serverDomain+ucenterPort);
	request.setAttribute("MALL_WEBSITE","http://"+mallWebSite+mallPort);
	request.setAttribute("STATIC_PATH","http://design.ehaoyao.com"+designPort+"/static");
	request.setAttribute("API_UCENTER_WEBSITE", apiUcenter+ucenterPort);
	request.setAttribute("IMAGES_WEBSITE", imagesWeb);
	request.setAttribute("MASTER_WEBSITE", masterWebSite);
	request.setAttribute("NEWS_WEBSITE", newsWebSite);
	
	
	Map<Integer , String> vipCssMap = new HashMap<Integer,String>();
	vipCssMap.put(UserTypeEnum.VIP1.getType(), "vip-1");
	vipCssMap.put(UserTypeEnum.VIP2.getType(), "vip-2");
	vipCssMap.put(UserTypeEnum.VIP3.getType(), "vip-3");
	request.setAttribute("vipCssMap", vipCssMap);
%>
<c:set var="CSS_PATH" value="${STATIC_PATH }/css" scope="request" />
<c:set var="JS_PATH" value="${STATIC_PATH }/js" scope="request" />
<c:set var="LOCAL_JS_PATH" value="/js" scope="request" />
<c:set var="LOCAL_CSS_PATH" value="/css" scope="request" />
<c:set var="IMAGE_PATH" value="${STATIC_PATH }/images" scope="request" />
<c:set var="CONTEXT_PATH" value="<%=request.getContextPath() %>"/>

<c:set var="orderStatusMap" value="<%=FormSelectLoader.getOrderStatusMap() %>"/>
<c:set var="orderDelStatusMap" value="<%=FormSelectLoader.getOrderDelStatusMap() %>"/>
<c:set var="taskCompleteStatusMap" value="<%=FormSelectLoader.getTaskCompleteStatusMap() %>"/>
<c:set var="taskCycleStatusMap" value="<%=FormSelectLoader.getTaskCycleformMap() %>"/>
<c:set var="integralRecordTypeMap" value="<%=FormSelectLoader.getUserIntegralRecordTypeMap() %>"/>
<c:set var="integralConsumeMap" value="<%=FormSelectLoader.getUserIntegralConsumeMap()%>"/>	
<c:set var="TASK_COMPLETE_STATUS_INITIALIZATION" value="<%=TaskCompleteStatusEnum.INITIALIZATION.getId() %>"/>
<c:set var="TASK_COMPLETE_STATUS_PROCESSING" value="<%=TaskCompleteStatusEnum.PROCESSING.getId() %>"/>
<c:set var="TASK_COMPLETE_STATUS_FINISH" value="<%=TaskCompleteStatusEnum.FINISH.getId() %>"/>
<c:set var="TASK_COMPLETE_STATUS_COMPLETED" value="<%=TaskCompleteStatusEnum.COMPLETED.getId() %>"/>
<c:set var="TASK_COMPLETE_STATUS_COMPLETED" value="<%=TaskCompleteStatusEnum.COMPLETED.getId() %>"/>
	
		
<c:set var="ORDER_STATUS_NOT_PAY" value="<%=OrderStatusEnum.STATUS_NOT_PAY.getId() %>"/>
<c:set var="ORDER_STATUS_WAIT_CONFIRM" value="<%=OrderStatusEnum.STATUS_WAIT_CONFIRM.getId() %>"/>
<c:set var="ORDER_STATUS_WAIT_SEND" value="<%=OrderStatusEnum.STATUS_WAIT_SEND.getId() %>"/>
<c:set var="ORDER_STATUS_SENDED" value="<%=OrderStatusEnum.STATUS_SENDED.getId() %>"/>
<c:set var="ORDER_STATUS_FINISHED" value="<%=OrderStatusEnum.STATUS_FINISHED.getId() %>"/>
<c:set var="ORDER_STATUS_CANCEL" value="<%=OrderStatusEnum.STATUS_CANCEL.getId() %>"/>

<c:set var="APPLICABLE_PLATFORM_ALL" value="<%=ApplicablePlatformEnum.ALL.getId() %>"/>
<c:set var="APPLICABLE_PLATFORM_WEB" value="<%=ApplicablePlatformEnum.WEB.getId() %>"/>
<c:set var="APPLICABLE_PLATFORM_HTML5" value="<%=ApplicablePlatformEnum.HTML5.getId() %>"/>
<c:set var="APPLICABLE_PLATFORM_WECHAT" value="<%=ApplicablePlatformEnum.WECHAT.getId() %>"/>

<c:set var="VIP_NO" value="<%=UserAccountInfoStatusEnum.VIP_NO.getId() %>"/>
<c:set var="VIP_YES" value="<%=UserAccountInfoStatusEnum.VIP_YES.getId() %>"/>
<c:set var="GENERAL" value="<%=UserTypeEnum.GENERAL.getType() %>"/>
<c:set var="VIP1" value="<%=UserTypeEnum.VIP1.getType() %>"/>
<c:set var="VIP3" value="<%=UserTypeEnum.VIP3.getType() %>"/>
<c:set var="VIP4" value="<%=UserTypeEnum.VIP4.getType() %>"/>
<c:set var="VIP5" value="<%=UserTypeEnum.VIP5.getType() %>"/>
<c:set var="VIP6" value="<%=UserTypeEnum.VIP6.getType() %>"/>
<c:set var="PHARMACIST" value="<%=UserTypeEnum.PHARMACIST.getType() %>"/>
<c:set var="SENIORPHARMACIST" value="<%=UserTypeEnum.SENIORPHARMACIST.getType() %>"/>
<c:set var="ORDER_CANCEL_REASON_MAP" value="<%=OrderCancelReasonMap.getMap() %>"/>

<c:set var="OTC_A" value="<%=GoodsPrescriptionTypeEnum.OTC_A.getId() %>"/>
<c:set var="OTC_B" value="<%=GoodsPrescriptionTypeEnum.OTC_B.getId() %>"/>
<c:set var="DRUGSPRESCRIPTION" value="<%=GoodsPrescriptionTypeEnum.Drugsprescription.getId() %>"/>
<c:set var="HEALTHFOOD" value="<%=GoodsPrescriptionTypeEnum.healthFood.getId() %>"/>
<c:set var="VIP" value="<%=IntegralExchangeColumnEnum.VIP.getId()%>"/>
<c:set var="GOODS" value="<%=IntegralExchangeColumnEnum.GOODS.getId()%>"/>
<c:set var="staticRSC" value="<%=UpdateJsTask.getMap()%>"/>
